package com.awifi.dbus.proxy;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;

public class LogAspect {

	public void startLog( JoinPoint point ) {
		System.out.println("开始调用: "+ point.getSignature().toShortString() );
	}
	
	public void endLog( JoinPoint point ) {
		System.out.println("结束调用: "+ point.getSignature().toShortString() );
	}
	/*
	 * 在开始之前，结束之后插入
	 */
	public void around( ProceedingJoinPoint point ) throws Throwable {
		System.out.println("开始之前调用======== "+ point.getSignature() );
		point.proceed();//执行
		System.out.print("结束之后调用======= "+ point.getSignature() );
	}
}
